import { dateFormat, resetForm, addDateRange, selectDictLabel,formatCurrency } from "@/utils/yiyue";

export function currencyFilter(val,num) {
  return formatCurrency(val);
}

export function dateFilter(date, pattern) {
  return dateFormat(date, pattern);
}

export function converStrToDateFilter(val) {
 if(val){
   return val.replace(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/mg, '$1-$2-$3 $4:$5:$6');
 }
 return '';
}
